<template>
  <div class="app-container">
    <h2>父子组件传值,且prop双向绑定</h2>
    <el-input v-model="parentValue">
      <template slot="prepend">我是父组件</template>
    </el-input>
    <br/>
    <br/>
    <br/>
    <Child :valueFromParent.sync="parentValue"></Child>
  </div>
</template>

<script>
import Child from './child'
export default {
  name: 'ParentComponent',
  components: { Child },
  data() {
    return {
      'parentValue': '请修改默认值进行传值测试'
    }
  }
}
</script>

<style scoped>

</style>
